package com.chuangke.framework.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.chuangke.admin.data.builder.UserDataBuilder;
import com.chuangke.common.trans.annotation.Trans;

public class BasicModel implements Serializable{

	
    private static final long serialVersionUID = 1L;
	
	private String id;
	private String remarks;
	
	@TableField(exist=false) private String name;
	@TableField(fill = FieldFill.INSERT) private Date createdAt;
	@Trans(dataBuilder=UserDataBuilder.class,key="createdBy",ref="createdByName")
	@TableField(fill = FieldFill.INSERT) private String createdBy;
	@TableField(fill = FieldFill.INSERT_UPDATE) private Date updatedAt;
	@Trans(dataBuilder=UserDataBuilder.class,key="updatedBy",ref="updatedByName")
	@TableField(fill = FieldFill.INSERT_UPDATE) private String updatedBy;
	@TableField(exist=false) private String createdByName;
	@TableField(exist=false) private String updatedByName;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	public String getCreatedByName() {
		return createdByName;
	}

	public void setCreatedByName(String createdByName) {
		this.createdByName = createdByName;
	}

	public String getUpdatedByName() {
		return updatedByName;
	}

	public void setUpdatedByName(String updatedByName) {
		this.updatedByName = updatedByName;
	}

}
